<%--
  Created by IntelliJ IDEA.
  User: 王健兵
  Date: 2021/5/15
  Time: 22:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录处理</title>
</head>
<body>
<%
    request.setCharacterEncoding("utf-8");
    String username=request.getParameter("username");
    String password=request.getParameter("password");
    if(session.getAttribute("username").equals(username)&&session.getAttribute("password").equals(password)){
        response.sendRedirect("success.jsp");
    }
    else{
        response.sendRedirect("failure.jsp");
    }
%>
</body>
</html>
